<!--
 * @Description: 路由测试
 * @Author: flyer
 * @Date: 2022-04-13 17:24:40
 * @LastEditTime: 2022-04-13 18:40:20
 * @LastEditors: flyer
-->
<template>
  <div @click="to">跳转过去</div>
</template>

<script lang="ts">
import router from "@/router";
export default {
  name: "HomeView",
  setup() {
    const to = () => {
      router.push("/about");
    };
    return {
      to,
    };
  },
};
</script>
